export default [
    {
        path: '/welcome',
        name: 'Home',
        meta: {
            author: ['TC', 'USER']
        },
        component: () => import(/* webpackChunkName: "about" */ '../views'),
        children: [
          {
            path: '/welcome',
            // redirect: '/welcome/house',
            meta: {
                author: ['TC', 'USER']
            },
          },
          {
            path: 'house',
            name: 'House',
            meta: {
                author: ['TC']
            },
            component: () => import(/* webpackChunkName: "about" */ '../views/House')
          },
          {
            path: 'live',
            name: 'Live',
            meta: {
                author: ['USER']
            },
            component: () => import(/* webpackChunkName: "Live" */ '../views/Live')
          }
        ]
    },
    {
        /**
         * 进行我们的路由匹配，通俗来讲就是比如我们是http://localhost:8080
         * 匹配我们/后面的如果你乱写的话就会重定向我们的404路由
         * 举个例子
         *   { path: '/user-:afterUser(.*)',      redirect: '/notfound},
         * 匹配我们/user后面的内容，如果你乱写的话就会进入404
         */
        path: '/:pathMatch(.*)*',
        meta: {
            author: ['TC', 'USER']
        },
        redirect: '/404'
      }
]